package superfan.springLearn.bean;

import java.util.List;

public class Person {
	
	private String name;
	private int age;
	private String sex;
	private List<Person> family;
	
	public Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	public List<Person> getFamily() {
		return family;
	}



	public void setFamily(List<Person> family) {
		this.family = family;
	}



	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	public void init() {
		System.out.println("init");
	}
	
	public void destory() {
		System.out.println("destory");
	}

}
